package com.osce.interfaces.framework;

import com.osce.common.core.entity.model.LoginUser;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zzxjs
 * @since 2024/4/10
 */
public interface TokenService {

    LoginUser getLoginUser(HttpServletRequest request);

    LoginUser getLoginUser(String token);

    void setLoginUser(LoginUser loginUser);

    String createToken(LoginUser loginUser);

    void verifyToken(LoginUser loginUser);

    void delLoginUser(String token);
}
